<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link href="mstatic/css/bootstrap.min.css"  type="text/css" rel="stylesheet">
    <link href="mstatic/css/jquery-ui.css"  type="text/css" rel="stylesheet">
    <link href="mstatic/css/index.css" type="text/css" rel="stylesheet">
    <title>维修</title>
</head>

<body>
<!--头部-->
<nav class="navbar navbar-default navbar-fixed-top  top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header" style=" width:100%;"> <a class="navbar-brand" href="javascript:history.go(-1);" style=" width:100%;  padding-right:0px;"> <span class="glyphicon glyphicon-arrow-left white"></span>
                <!--    <span class="glyphicon glyphicon-pause white" style="margin-left:2%;"></span>-->
                <span class="white" style="margin-left:10%">维修</span> <span class="glyphicon glyphicon-user white" style="float:right"></span> </a> </div>
    </div>
    <!-- /.container-fluid -->
</nav>
<!--头部 end-->
<!--主体部分-->

<div class="container" style="margin-top:70px;">
    <div class="row" style="margin-top:10px;">
        <div class="col-xs-6 text-center grade" >
            <a href="index.php?a=main.maintainlist&maintainlist_type=1">
                <img src="mstatic/images/weixiu.png"  class="img-responsive center-block">
                <p class="text-center">维修</p>
            </a>
        </div>
        <div class="col-xs-6 text-center grade">
            <a href="index.php?a=main.demandlist">
                <img src="mstatic/images/chax.png"  class="img-responsive center-block">
                <p style="color:#016cd6">查询</p>
            </a>
        </div>
    </div>
    <div class="row" style="margin-top:10px;">
        <form  action="" method="get">
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">报修人:</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="main_name">
                            <option value="">全部</option>
                            {%foreach from=$main_names key=key item=value%}
                            <option value="{%$value.user_name%}"{%if $value.user_name == $main_name%}selected{%/if%} >{%$value.user_name%}</option>
                            {%/foreach%}
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">维修单位:</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="maince_com">
                            <option value="" >全部</option>
                            {%foreach from=$maince_lists key=key item=value%}
                            <option value="{%$value.maince_com%}"{%if $value.maince_com == $maince_com%}selected{%/if%}>{%$value.maince_com%}</option>
                            {%/foreach%}

                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <div class="col-sm-10 text-center" >
                        <input type="hidden" name="a" value="main.demandlist">
                        <button type="submit" class="btn btn-success" style="width:80%">搜索</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        {%foreach from=$main_lists key=key item=value%}
        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>
                <td>报修人</td>
                <td>{%$value.user_name%}</td>
            </tr>
            <tr>
                <td>完成时间</td>
                <td>{%$value.maintain_time%}</td>
            </tr>
            <tr>
                <td>维修单位</td>
                <td>{%$value.maince_com%}</td>
            </tr>
            <tr>
                <td>维修内容</td>
                <td>{%$value.main_content%}</td>
            </tr>
            <tr>
                <td>结算类型</td>
                <td>{%$value.is_show%}</td>
            </tr>
            <tr>
                <td>备注</td>
                <td>{%$value.main_remark%}</td>
            </tr>
            <tr>
                <td>操作</td>
                <td ><a href="index.php?a=main.maintaindetails&main_id={%$value.main_id%}&is_show=1&main_type=chaxun" class="btn btn-success btn-sm" title="查看">查看</a></td>
            </tr>
        </table>
        {%/foreach%}
    </div>
</div>
<!--container  end-->

<!--主体部分  end-->
<!--底部-->

<div class="container" style="margin-top:25%;">
    <div class="row">
        <div class="footer navbar-fixed-bottom">
            <div class="col-xs-12" style=" height:15%"></div>
            <div class="col-md-4  col-xs-4 text-center" >
                <p class="glyphicon glyphicon-home white footer_font"></p>
                <p><a href="index.php?a=default.index" class="white  footer_font2">首页</a></p>
            </div>
            <div class="col-md-4 col-xs-4 text-center white  ">
                <p class="glyphicon glyphicon-comment white  footer_font"></p>
                <p><a href="index.php?a=notice.commonlist"  class="white  footer_font2">消息</a></p>
            </div>
            <div class="col-md-4 col-xs-4 text-center white" >
                <p class="glyphicon glyphicon-asterisk white footer_font"></p>
                <p ><a href=""  class="white  footer_font2">设置</a></p>
            </div>
        </div>
        <!--footer  end-->

    </div>
    <!--row  end-->

</div>
<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->
<!--日历-->
<script>
    $(function() {
        $( "#datepicker" ).datepicker({

            changeMonth: true,
            changeYear: true

        });

        $( "#datepicker2" ).datepicker({

            changeMonth: true,
            changeYear: true

        });
    });
</script>
</body>
</html>
